package com.app.couponsharelife.ui.adapter

import android.content.Context
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.app.couponsharelife.R
import com.app.couponsharelife.data.bean.ShopOrderListBean

/**
 *Created by xct on 2019/3/13
 *Description:本地生活订单列表页面Adapter
 */
class ShopOrderListAdapter(private val contxt:Context,private val dataList:List<ShopOrderListBean>):RecyclerView.Adapter<RecyclerView.ViewHolder>() {
    override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): RecyclerView.ViewHolder {
        val view=LayoutInflater.from(contxt).inflate(R.layout.shop_orderlist_rvitem,parent,false)
        return MyHolder(view)
    }

    override fun getItemCount(): Int {
        return dataList.size
    }

    override fun onBindViewHolder(holder: RecyclerView.ViewHolder, position: Int) {

    }
    private inner class MyHolder(itemview:View):RecyclerView.ViewHolder(itemview)
}